// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode 

package anyVehicle;


import net.minecraft.src.BlockContainer;
import net.minecraft.src.EntityLiving;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.EntityPlayerSP;
import net.minecraft.src.Material;
import net.minecraft.src.ModLoader;
import net.minecraft.src.TileEntity;
import net.minecraft.src.World;


// Referenced classes of package net.minecraft.src:
//            Block, Material

public class BlockVehicleCreator extends BlockContainer //implements ITextureProvider
{
//	@Override
	public String getTextureFile() {
		return "/anyVehicle/anyVehicleBlockTextures.png";
	}


	public BlockVehicleCreator(int i, int j)
    {
        super(i, j, Material.iron);
        isBlockContainer[blockID] = true;
        setHardness(2.0F);
        setResistance(5.0F);
        setBlockName("anyBoatCreator");
//		setLightValue(0.9375F);
    }

	@Override
	public boolean blockActivated(World world, int x, int y, int z, EntityPlayer entityplayer) {

		if (entityplayer instanceof EntityPlayerSP) {
			TileEntityScaffold scaffoldTE = (TileEntityScaffold) world.getBlockTileEntity(x, y, z);
			if (scaffoldTE != null) {
					ModLoader.getMinecraftInstance().displayGuiScreen(new GUIScaffold(scaffoldTE));
			}
		}
		return true;
	}

    public void onBlockAdded(World world, int x, int y, int z)
    {
        super.onBlockAdded(world, x, y, z);
        world.setBlockTileEntity(x, y, z, new TileEntityScaffold(world, x, y, z));

    }

    public void onBlockRemoval(World world, int i, int j, int k)
    {
        super.onBlockRemoval(world, i, j, k);
        
        
    }

	@Override
	public void onBlockPlacedBy(World world, int x, int y, int z, EntityLiving entityliving) {
	}


	@Override
	public TileEntity getBlockEntity() {
		// Do nothing
		return null;
	}
	



    
}
